package ooday01exercise;

public class Teacher extends People{
    String salary;
    Teacher(){
    }
    Teacher(String name,int age,String address,String salary){
        super.name = name;
        super.age = age;
        super.address = address;
        this.salary=salary;
    }
    void teach(){
        System.out.println(name+"老师工资："+salary);
    }
}
